package com.situ.springboot.mapper;

import com.situ.springboot.pojo.Blog;
import com.situ.springboot.pojo.query.BlogQuery;

import java.util.List;

public interface BlogMapper {
    //List<Blog> selectByPage(@Param("offset") int offset,@Param("limit") Integer limit);
    List<Blog> selectByPage(BlogQuery blogQuery);

    //int selectTotalCount(BlogQuery blogQuery);

    int deleteById(Integer id);

    int add(Blog blog);

    Blog selectById(Integer id);

    int update(Blog blog);

    int deleteAll(Integer[] ids);
}
